<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        
        
        
        <link rel="shortcut icon" href="../../img/favicon.ico">
        <title>产品 - Mall Docs</title>
        <link href="../../css/bootstrap.min.css" rel="stylesheet">
        <link href="../../css/font-awesome.min.css" rel="stylesheet">
        <link href="../../css/base.css" rel="stylesheet">
        <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/github.min.css">

        <script src="../../js/jquery-1.10.2.min.js" defer></script>
        <script src="../../js/bootstrap.min.js" defer></script>
        <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/highlight.min.js"></script>
        <script>hljs.initHighlightingOnLoad();</script> 
    </head>

    <body>
        <div class="navbar fixed-top navbar-expand-lg navbar-dark bg-primary">
            <div class="container">
                <a class="navbar-brand" href="../..">Mall Docs</a>
                <!-- Expander button -->
                <button type="button" class="navbar-toggler" data-toggle="collapse" data-target="#navbar-collapse">
                    <span class="navbar-toggler-icon"></span>
                </button>

                <!-- Expanded navigation -->
                <div id="navbar-collapse" class="navbar-collapse collapse">
                        <!-- Main navigation -->
                        <ul class="nav navbar-nav">
                            <li class="navitem">
                                <a href="../.." class="nav-link">Home</a>
                            </li>
                            <li class="dropdown">
                                <a href="#" class="nav-link dropdown-toggle" data-toggle="dropdown">User <b class="caret"></b></a>
                                <ul class="dropdown-menu">
                                    
<li>
    <a href="../../user/user/" class="dropdown-item">Main</a>
</li>
                                </ul>
                            </li>
                            <li class="dropdown active">
                                <a href="#" class="nav-link dropdown-toggle" data-toggle="dropdown">Mall <b class="caret"></b></a>
                                <ul class="dropdown-menu">
                                    
<li>
    <a href="../" class="dropdown-item">首页</a>
</li>
                                    
<li>
    <a href="../coupon/" class="dropdown-item">优惠券</a>
</li>
                                    
<li>
    <a href="./" class="dropdown-item active">产品</a>
</li>
                                    
<li>
    <a href="../search/" class="dropdown-item">搜索</a>
</li>
                                    
<li>
    <a href="../cart/" class="dropdown-item">购物车</a>
</li>
                                    
<li>
    <a href="../address/" class="dropdown-item">地址</a>
</li>
                                    
<li>
    <a href="../activity/" class="dropdown-item">活动</a>
</li>
                                    
<li>
    <a href="../order/" class="dropdown-item">订单</a>
</li>
                                    
<li>
    <a href="../my/" class="dropdown-item">个人中心</a>
</li>
                                    
<li>
    <a href="../collect/" class="dropdown-item">收藏</a>
</li>
                                    
<li>
    <a href="../aftersale/" class="dropdown-item">售后</a>
</li>
                                    
<li>
    <a href="../vip/" class="dropdown-item">会员</a>
</li>
                                    
<li>
    <a href="../charge/" class="dropdown-item">充值</a>
</li>
                                </ul>
                            </li>
                            <li class="dropdown">
                                <a href="#" class="nav-link dropdown-toggle" data-toggle="dropdown">管理后台 <b class="caret"></b></a>
                                <ul class="dropdown-menu">
                                    
<li>
    <a href="../../admin/user/" class="dropdown-item">用户</a>
</li>
                                    
<li>
    <a href="../../admin/goods/" class="dropdown-item">商品</a>
</li>
                                    
<li>
    <a href="../../admin/ad/" class="dropdown-item">推广</a>
</li>
                                    
<li>
    <a href="../../admin/topic/" class="dropdown-item">活动</a>
</li>
                                </ul>
                            </li>
                        </ul>

                    <ul class="nav navbar-nav ml-auto">
                        <li class="nav-item">
                            <a href="#" class="nav-link" data-toggle="modal" data-target="#mkdocs_search_modal">
                                <i class="fa fa-search"></i> Search
                            </a>
                        </li>
                            <li class="nav-item">
                                <a rel="prev" href="../coupon/" class="nav-link">
                                    <i class="fa fa-arrow-left"></i> Previous
                                </a>
                            </li>
                            <li class="nav-item">
                                <a rel="next" href="../search/" class="nav-link">
                                    Next <i class="fa fa-arrow-right"></i>
                                </a>
                            </li>
                    </ul>
                </div>
            </div>
        </div>

        <div class="container">
            <div class="row">
                    <div class="col-md-3"><div class="navbar-light navbar-expand-md bs-sidebar hidden-print affix" role="complementary">
    <div class="navbar-header">
        <button type="button" class="navbar-toggler collapsed" data-toggle="collapse" data-target="#toc-collapse" title="Table of Contents">
            <span class="fa fa-angle-down"></span>
        </button>
    </div>

    
    <div id="toc-collapse" class="navbar-collapse collapse card bg-secondary">
        <ul class="nav flex-column">
            
            <li class="nav-item" data-level="1"><a href="#_1" class="nav-link">产品相关接口</a>
              <ul class="nav flex-column">
            <li class="nav-item" data-level="2"><a href="#_2" class="nav-link">修订记录</a>
              <ul class="nav flex-column">
              </ul>
            </li>
            <li class="nav-item" data-level="2"><a href="#_3" class="nav-link">背景</a>
              <ul class="nav flex-column">
              </ul>
            </li>
            <li class="nav-item" data-level="2"><a href="#_4" class="nav-link">产品说明</a>
              <ul class="nav flex-column">
              </ul>
            </li>
            <li class="nav-item" data-level="2"><a href="#_5" class="nav-link">关键流程说明</a>
              <ul class="nav flex-column">
              </ul>
            </li>
            <li class="nav-item" data-level="2"><a href="#_6" class="nav-link">接口说明</a>
              <ul class="nav flex-column">
              </ul>
            </li>
              </ul>
            </li>
        </ul>
    </div>
</div></div>
                    <div class="col-md-9" role="main">

<h1 id="_1">产品相关接口</h1>
<div class="toc">
<ul>
<li><a href="#_1">产品相关接口</a><ul>
<li><a href="#_2">修订记录</a></li>
<li><a href="#_3">背景</a></li>
<li><a href="#_4">产品说明</a></li>
<li><a href="#_5">关键流程说明</a></li>
<li><a href="#_6">接口说明</a><ul>
<li><a href="#10">1.0 分类获取商品信息</a><ul>
<li><a href="#_7">接口说明</a></li>
<li><a href="#_8">请求说明</a></li>
<li><a href="#_9">输入参数</a></li>
<li><a href="#_10">错误说明</a></li>
<li><a href="#_11">返回实例</a></li>
</ul>
</li>
<li><a href="#11">1.1 商品详情信息</a><ul>
<li><a href="#_12">接口说明</a></li>
<li><a href="#_13">请求说明</a></li>
<li><a href="#_14">输入参数</a></li>
<li><a href="#_15">错误说明</a></li>
<li><a href="#_16">返回实例</a></li>
</ul>
</li>
<li><a href="#12">1.2 相关商品推荐</a><ul>
<li><a href="#_17">接口说明</a></li>
<li><a href="#_18">请求说明</a></li>
<li><a href="#_19">输入参数</a></li>
<li><a href="#_20">错误说明</a></li>
<li><a href="#_21">返回实例</a></li>
</ul>
</li>
<li><a href="#13">1.3 产品规格库存信息（购物车弹出规格修改）</a><ul>
<li><a href="#_22">接口说明</a></li>
<li><a href="#_23">请求说明</a></li>
<li><a href="#_24">输入参数</a></li>
<li><a href="#_25">错误说明</a></li>
<li><a href="#_26">返回实例</a></li>
</ul>
</li>
<li><a href="#14-id">1.4 根据订单ID推荐相关产品</a><ul>
<li><a href="#_27">接口说明</a></li>
<li><a href="#_28">请求说明</a></li>
<li><a href="#_29">输入参数</a></li>
<li><a href="#_30">错误说明</a></li>
<li><a href="#_31">返回实例</a></li>
</ul>
</li>
<li><a href="#15">1.5 评价列表接口</a><ul>
<li><a href="#_32">接口说明</a></li>
<li><a href="#_33">请求说明</a></li>
<li><a href="#_34">输入参数</a></li>
<li><a href="#_35">错误说明</a></li>
<li><a href="#_36">返回实例</a></li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<h2 id="_2">修订记录</h2>
<hr />
<table>
<thead>
<tr>
<th>日期</th>
<th>作者</th>
<th>修订类型</th>
<th>修订内容</th>
<th>版本</th>
</tr>
</thead>
<tbody>
<tr>
<td>2020年07月03日</td>
<td>冷立纲</td>
<td>A</td>
<td>新增设计方案</td>
<td>1.0</td>
</tr>
</tbody>
</table>
<blockquote>
<p>【修订类型：A-新增  M-修改 D-删除】</p>
</blockquote>
<h2 id="_3">背景</h2>
<p>优惠券相关接口</p>
<h2 id="_4">产品说明</h2>
<h2 id="_5">关键流程说明</h2>
<h2 id="_6">接口说明</h2>
<h4 id="10">1.0 分类获取商品信息</h4>
<h5 id="_7">接口说明</h5>
<p>按商品类别分页拉取商品列表信息</p>
<h5 id="_8">请求说明</h5>
<table>
<thead>
<tr>
<th align="left">http 请求方式</th>
<th align="center">get</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">url</td>
<td align="center">/goods/list</td>
</tr>
</tbody>
</table>
<h5 id="_9">输入参数</h5>
<table>
<thead>
<tr>
<th align="left">参数</th>
<th align="center">必选</th>
<th align="left">类型</th>
<th align="left">参数说明</th>
<th align="left">备注</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">categoryId</td>
<td align="center">否</td>
<td align="left">int</td>
<td align="left">分类ID</td>
<td align="left">0 为精选</td>
</tr>
<tr>
<td align="left">brandId</td>
<td align="center">否</td>
<td align="left">int</td>
<td align="left">品牌ID</td>
<td align="left"></td>
</tr>
<tr>
<td align="left">keyword</td>
<td align="center">否</td>
<td align="left">string</td>
<td align="left">查询关键词</td>
<td align="left"></td>
</tr>
<tr>
<td align="left">isNew</td>
<td align="center">否</td>
<td align="left">boolean</td>
<td align="left">是否新</td>
<td align="left"></td>
</tr>
<tr>
<td align="left">isHot</td>
<td align="center">否</td>
<td align="left">boolean</td>
<td align="left">是否热门</td>
<td align="left"></td>
</tr>
<tr>
<td align="left">sort</td>
<td align="center">否</td>
<td align="left">string</td>
<td align="left">排序字段</td>
<td align="left">add_time, retail_price, name</td>
</tr>
<tr>
<td align="left">order</td>
<td align="center">否</td>
<td align="left">string</td>
<td align="left">倒序/正序</td>
<td align="left">asc  desc</td>
</tr>
<tr>
<td align="left">page</td>
<td align="center">否</td>
<td align="left">int</td>
<td align="left">页码</td>
<td align="left">默认值 1</td>
</tr>
<tr>
<td align="left">limit</td>
<td align="center">否</td>
<td align="left">int</td>
<td align="left">单页条数</td>
<td align="left">默认值 10</td>
</tr>
</tbody>
</table>
<h5 id="_10">错误说明</h5>
<h5 id="_11">返回实例</h5>
<pre><code class="json">
    {
    &quot;c&quot;: 0,
    &quot;m&quot;: null,
    &quot;d&quot;: {
        &quot;pageSize&quot;: 10,
        &quot;total&quot;: 1,
        &quot;currentPage&quot;: 1,
        &quot;list&quot;: [
            {
                &quot;id&quot;: 1006002,  //产品ID
                &quot;name&quot;: &quot;轻奢纯棉刺绣水洗四件套&quot;, //名称
                &quot;tags&quot;: null,  //标签
                &quot;picUrl&quot;: &quot;http://yanxuan.nosdn.127.net/8ab2d3287af0cefa2cc539e40600621d.png&quot;,
                &quot;unit&quot;: &quot;件&quot;, //单位
                &quot;counterPrice&quot;: 919.00,  //专柜价
                &quot;retailPrice&quot;: 899.00, //零售价
                &quot;vipPrice&quot;: 100000.00, //会员价
                &quot;brief&quot;: &quot;设计师原款，精致绣花&quot;, //简介
                &quot;gallery&quot;:[&quot;http://yanxuan.nosdn.127.net/8ab2d3287af0cefa2cc539e40600621d.png&quot;], //图片
                &quot;videos&quot;:[
                        {
                            &quot;url&quot;:&quot;/xxxx&quot;,
                            &quot;cover&quot;:&quot;cover&quot;,
                            &quot;size&quot;:&quot;x*y&quot;
                        }
                    ]
            }
        ],
        &quot;unit&quot;: &quot;条&quot;,
        &quot;extInfo&quot;: null,
        &quot;endIndex&quot;: 10,
        &quot;startIndex&quot;: 0,
        &quot;firstPage&quot;: true,
        &quot;lastPage&quot;: true,
        &quot;nextPage&quot;: 1,
        &quot;previousPage&quot;: 1,
        &quot;totalPages&quot;: 1,
        &quot;empty&quot;: false
    }
}

</code></pre>

<h4 id="11">1.1 商品详情信息</h4>
<h5 id="_12">接口说明</h5>
<p>根据产品ID获取产品详细信息</p>
<h5 id="_13">请求说明</h5>
<table>
<thead>
<tr>
<th align="left">http 请求方式</th>
<th align="center">get</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">url</td>
<td align="center">/goods/detail</td>
</tr>
</tbody>
</table>
<h5 id="_14">输入参数</h5>
<table>
<thead>
<tr>
<th align="left">参数</th>
<th align="center">必选</th>
<th align="left">类型</th>
<th align="left">参数说明</th>
<th align="left">备注</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">id</td>
<td align="center">是</td>
<td align="left">int</td>
<td align="left">产品ID</td>
<td align="left"></td>
</tr>
</tbody>
</table>
<h5 id="_15">错误说明</h5>
<h5 id="_16">返回实例</h5>
<pre><code class="json">
   {
    &quot;c&quot;: 0,
    &quot;m&quot;: null,
    &quot;d&quot;: {
        &quot;defaultAddress&quot;: {  //默认收货地址
            &quot;id&quot;: 3,
            &quot;name&quot;: &quot;我&quot;,
            &quot;userId&quot;: 11445,
            &quot;province&quot;: &quot;北京市&quot;,
            &quot;city&quot;: &quot;市辖区&quot;,
            &quot;county&quot;: &quot;朝阳区&quot;,
            &quot;addressDetail&quot;: &quot;211&quot;,
            &quot;areaCode&quot;: &quot;110105&quot;,
            &quot;postalCode&quot;: null,
            &quot;tel&quot;: &quot;15201008961&quot;,
            &quot;isDefault&quot;: true,
            &quot;addTime&quot;: &quot;2020-06-29 14:46:15&quot;,
            &quot;updateTime&quot;: &quot;2020-06-29 14:46:15&quot;,
            &quot;deleted&quot;: false
        },
        &quot;couponList&quot;: [ //可用优惠券列表
            {
                &quot;id&quot;: 2,
                &quot;cid&quot;: null,
                &quot;name&quot;: &quot;限时满减券&quot;,
                &quot;desc&quot;: &quot;全场通用&quot;,
                &quot;tag&quot;: &quot;无限制&quot;,
                &quot;min&quot;: 99.00,
                &quot;discount&quot;: 10.00,
                &quot;startTime&quot;: null,
                &quot;endTime&quot;: null,
                &quot;available&quot;: false,
                &quot;reducedMoney&quot;: 10.00
            }
        ]
        &quot;info&quot;: {
            &quot;id&quot;: 1057036, //产品ID
            &quot;goodsSn&quot;: &quot;1057036&quot;, //产品SN
            &quot;name&quot;: &quot;日式纯色水洗亚麻抱枕&quot;, //品名
            &quot;categoryId&quot;: 1008002, //品类
            &quot;brandId&quot;: 1001000, //商标
            &quot;gallery&quot;: [   //商品图片
                &quot;http://yanxuan.nosdn.127.net/bec107bf0cc86dcf90fa084584d68c76.jpg&quot;
            ],
            &quot;keywords&quot;: &quot;&quot;, //关键词
            &quot;brief&quot;: &quot;水洗亚麻，透气亲肤&quot;, //简介
            &quot;isOnSale&quot;: true, //是否在售
            &quot;sortOrder&quot;: 6, //排序
            &quot;picUrl&quot;: &quot;http://yanxuan.nosdn.127.net/8a9ee5ba08929cc9e40b973607d2f633.png&quot;,  //缩略图
            &quot;shareUrl&quot;: &quot;&quot;,
            &quot;isNew&quot;: false,  //是否新品
            &quot;isHot&quot;: false, //是否热门
            &quot;unit&quot;: &quot;件&quot;, //单位
            &quot;counterPrice&quot;: 99.00, //专柜价
            &quot;retailPrice&quot;: 79.00, //销售价
            &quot;vipPrice&quot;: 100000.00, //vip价格
            &quot;addTime&quot;: &quot;2018-02-01 00:00:00&quot;, //添加时间
            &quot;updateTime&quot;: &quot;2018-02-01 00:00:00&quot;, //更新时间
            &quot;deleted&quot;: false,
            &quot;detail&quot;: &quot;&quot;, //富文本商品信息
            &quot;tags&quot;: [],  //标签
            &quot;videos&quot;: [],
            &quot;testReports&quot;: []  //测试报告
        },
        &quot;userHasCollect&quot;: 0,  //是否已收藏
        &quot;issue&quot;: {  //常见问题
            &quot;total&quot;: 0,
            &quot;list&quot;: [
                {
                    &quot;id&quot;: 1,
                    &quot;question&quot;: &quot;购买运费如何收取？&quot;,
                    &quot;answer&quot;: &quot;单笔订单金额（不含运费）满88元免邮费；不满88元，每单收取10元运费。\n(港澳台地区需满&quot;,
                    &quot;addTime&quot;: &quot;2018-02-01 00:00:00&quot;,
                    &quot;updateTime&quot;: &quot;2018-02-01 00:00:00&quot;,
                    &quot;deleted&quot;: false
                },
                {
                    &quot;id&quot;: 2,
                    &quot;question&quot;: &quot;使用什么快递发货？&quot;,
                    &quot;answer&quot;: &quot;严选默认使用顺丰快递发货（个别商品使用其他快递），配送范围覆盖全国大部分地区（港澳台地区除&quot;,
                    &quot;addTime&quot;: &quot;2018-02-01 00:00:00&quot;,
                    &quot;updateTime&quot;: &quot;2018-02-01 00:00:00&quot;,
                    &quot;deleted&quot;: false
                },
                {
                    &quot;id&quot;: 3,
                    &quot;question&quot;: &quot;如何申请退货？&quot;,
                    &quot;answer&quot;: &quot;1.自收到商品之日起30日内，顾客可申请无忧退货，退款将原路返还，不同的银行处理时间不同，&quot;,
                    &quot;addTime&quot;: &quot;2018-02-01 00:00:00&quot;,
                    &quot;updateTime&quot;: &quot;2018-02-01 00:00:00&quot;,
                    &quot;deleted&quot;: false
                },
                {
                    &quot;id&quot;: 4,
                    &quot;question&quot;: &quot;如何开具发票？&quot;,
                    &quot;answer&quot;: &quot;1.如需开具普通发票，请在下单时选择“我要开发票”并填写相关信息（APP仅限2.4.0及以&quot;,
                    &quot;addTime&quot;: &quot;2018-02-01 00:00:00&quot;,
                    &quot;updateTime&quot;: &quot;2018-02-01 00:00:00&quot;,
                    &quot;deleted&quot;: false
                }
            ],
            &quot;pageNum&quot;: 0,
            &quot;pageSize&quot;: 0,
            &quot;size&quot;: 0,
            &quot;startRow&quot;: 0,
            &quot;endRow&quot;: 0,
            &quot;pages&quot;: 0,
            &quot;prePage&quot;: 0,
            &quot;nextPage&quot;: 0,
            &quot;isFirstPage&quot;: false,
            &quot;isLastPage&quot;: false,
            &quot;hasPreviousPage&quot;: false,
            &quot;hasNextPage&quot;: false,
            &quot;navigatePages&quot;: 0,
            &quot;navigatepageNums&quot;: null,
            &quot;navigateFirstPage&quot;: 0,
            &quot;navigateLastPage&quot;: 0
        },
        &quot;comment&quot;: {  // 评论
            &quot;count&quot;: 0, // 总数
            &quot;data&quot;: [] // 评论数据
        },
        &quot;specificationList&quot;: [  //商品规格列表
            {
                &quot;name&quot;: &quot;规格&quot;,  //规格名
                &quot;valueList&quot;: [  //规格值
                    {
                        &quot;id&quot;: 70,  //规格ID
                        &quot;goodsId&quot;: 1057036, //产品ID
                        &quot;specification&quot;: &quot;规格&quot;, //规格名
                        &quot;value&quot;: &quot;标准&quot;,  //规格值
                        &quot;picUrl&quot;: &quot;&quot;, //规格图片
                        &quot;addTime&quot;: &quot;2018-02-01 00:00:00&quot;, //添加时间
                        &quot;updateTime&quot;: &quot;2018-02-01 00:00:00&quot;, //更新时间
                        &quot;deleted&quot;: false //删除
                    }
                ]
            }
        ],
        &quot;productList&quot;: [  //产品列表
            {
                &quot;id&quot;: 71,  //商品ID
                &quot;goodsId&quot;: 1057036, // 产品ID
                &quot;specifications&quot;: [  //规格列表
                    &quot;标准&quot;
                ],
                &quot;price&quot;: 79.00,  //价格
                &quot;number&quot;: 96, //剩余总数
                &quot;url&quot;: &quot;http://yanxuan.nosdn.127.net/8a9ee5ba08929cc9e40b973607d2f633.png&quot;,  //规格图片
                &quot;addTime&quot;: &quot;2018-02-01 00:00:00&quot;, //添加时间
                &quot;updateTime&quot;: &quot;2020-06-20 17:31:29&quot;, //更新时间
                &quot;deleted&quot;: false
            }
        ],
        &quot;attribute&quot;: [   //产品属性
            {
                &quot;id&quot;: 259,  //属性ID
                &quot;goodsId&quot;: 1057036, //产品ID
                &quot;attribute&quot;: &quot;尺寸&quot;, //属性名
                &quot;value&quot;: &quot;45*45cm&quot;,//属性值
                &quot;addTime&quot;: &quot;2018-02-01 00:00:00&quot;,  //添加时间
                &quot;updateTime&quot;: &quot;2018-02-01 00:00:00&quot; //更新时间
                &quot;deleted&quot;: false
            },
            {
                &quot;id&quot;: 260,
                &quot;goodsId&quot;: 1057036,
                &quot;attribute&quot;: &quot;颜色&quot;,
                &quot;value&quot;: &quot;灰紫/ 蓝色/ 灰色/ 咖色&quot;,
                &quot;addTime&quot;: &quot;2018-02-01 00:00:00&quot;,
                &quot;updateTime&quot;: &quot;2018-02-01 00:00:00&quot;,
                &quot;deleted&quot;: false
            }
        ],
        &quot;keyIndicators&quot;: [  //关键指标
            {
                &quot;id&quot;: 1,
                &quot;goodsId&quot;: 1057036,
                &quot;name&quot;: &quot;无机砷&quot;,  //检测箱
                &quot;unit&quot;: &quot;mg/kg&quot;, //单位
                &quot;value&quot;: &quot;无&quot;, //值
                &quot;deleted&quot;: false, //删除状态
                &quot;limited&quot;: &quot;0.05&quot;, //限定值
                &quot;addTime&quot;: null, //添加时间 
                &quot;updateTime&quot;: null //更新时间
            }
        ],

        &quot;brand&quot;: {  //品牌信息
            &quot;id&quot;: 1001000, //品牌ID
            &quot;name&quot;: &quot;MUJI制造商&quot;, //品牌名称
            &quot;desc&quot;: &quot;严选精选了MUJI制造商和生产原料，\n用几乎零利润的价格，剔除品牌溢价，\n让用户享受原品牌的品质生活。&quot;, //品牌描述
            &quot;picUrl&quot;: &quot;http://yanxuan.nosdn.127.net/1541445967645114dd75f6b0edc4762d.png&quot;,  //图片信息
            &quot;sortOrder&quot;: 2, //排序
            &quot;floorPrice&quot;: 12.90, //商品低价
            &quot;addTime&quot;: &quot;2018-02-01 00:00:00&quot;,
            &quot;updateTime&quot;: &quot;2018-02-01 00:00:00&quot;,
            &quot;deleted&quot;: false
        },
        &quot;groupon&quot;: [],
        &quot;share&quot;: false,
        &quot;shareImage&quot;: &quot;&quot; //分享图
    }
}

</code></pre>

<h4 id="12">1.2 相关商品推荐</h4>
<h5 id="_17">接口说明</h5>
<p>相关商品推荐</p>
<h5 id="_18">请求说明</h5>
<table>
<thead>
<tr>
<th align="left">http 请求方式</th>
<th align="center">get</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">url</td>
<td align="center">/goods/related</td>
</tr>
</tbody>
</table>
<h5 id="_19">输入参数</h5>
<table>
<thead>
<tr>
<th align="left">参数</th>
<th align="center">必选</th>
<th align="left">类型</th>
<th align="left">参数说明</th>
<th align="left">备注</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">id</td>
<td align="center">是</td>
<td align="left">int</td>
<td align="left">产品ID</td>
<td align="left"></td>
</tr>
</tbody>
</table>
<h5 id="_20">错误说明</h5>
<h5 id="_21">返回实例</h5>
<pre><code class="json">
    {
    &quot;c&quot;: 0,
    &quot;m&quot;: null,
    &quot;d&quot;: {
        &quot;pageSize&quot;: 6,
        &quot;total&quot;: 6,
        &quot;currentPage&quot;: 1,
        &quot;list&quot;: [
            {
                &quot;id&quot;: 1057036, //产品ID
                &quot;name&quot;: &quot;日式纯色水洗亚麻抱枕&quot;, //产品名称
                &quot;tags&quot;: null, //产品标签
                &quot;picUrl&quot;: &quot;http://yanxuan.nosdn.127.net/8a9ee5ba08929cc9e40b973607d2f633.png&quot;, //产品Url
                &quot;unit&quot;: &quot;件&quot;, //单位
                &quot;counterPrice&quot;: 99.00, //专柜价格
                &quot;retailPrice&quot;: 79.00, //销售价格
                &quot;vipPrice&quot;: 100000.00, //vip 价格
                &quot;brief&quot;: &quot;水洗亚麻，透气亲肤&quot;, //运营简介
                       &quot;gallery&quot;:[&quot;http://yanxuan.nosdn.127.net/8ab2d3287af0cefa2cc539e40600621d.png&quot;], //图片
                &quot;videos&quot;:[
                        {
                            &quot;url&quot;:&quot;/xxxx&quot;,
                            &quot;cover&quot;:&quot;cover&quot;,
                            &quot;size&quot;:&quot;x*y&quot;
                        }
                    ]
            }
        ],
        &quot;unit&quot;: &quot;条&quot;,
        &quot;extInfo&quot;: null,
        &quot;empty&quot;: false,
        &quot;endIndex&quot;: 6,
        &quot;startIndex&quot;: 0,
        &quot;firstPage&quot;: true,
        &quot;lastPage&quot;: true,
        &quot;nextPage&quot;: 1,
        &quot;previousPage&quot;: 1,
        &quot;totalPages&quot;: 1
    }
}

</code></pre>

<h4 id="13">1.3 产品规格库存信息（购物车弹出规格修改）</h4>
<h5 id="_22">接口说明</h5>
<p>产品规格库存信息</p>
<h5 id="_23">请求说明</h5>
<table>
<thead>
<tr>
<th align="left">http 请求方式</th>
<th align="center">get</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">url</td>
<td align="center">/goods/spec_store</td>
</tr>
</tbody>
</table>
<h5 id="_24">输入参数</h5>
<table>
<thead>
<tr>
<th align="left">参数</th>
<th align="center">必选</th>
<th align="left">类型</th>
<th align="left">参数说明</th>
<th align="left">备注</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">id</td>
<td align="center">是</td>
<td align="left">int</td>
<td align="left">产品ID</td>
<td align="left"></td>
</tr>
</tbody>
</table>
<h5 id="_25">错误说明</h5>
<h5 id="_26">返回实例</h5>
<pre><code class="json">

{
    &quot;c&quot;: 0,
    &quot;m&quot;: null,
    &quot;d&quot;: {
        &quot;specificationList&quot;: [  //商品规格列表
            {
                &quot;name&quot;: &quot;规格&quot;,  //规格名
                &quot;valueList&quot;: [  //规格值
                    {
                        &quot;id&quot;: 70,  //规格ID
                        &quot;goodsId&quot;: 1057036, //产品ID
                        &quot;specification&quot;: &quot;规格&quot;, //规格名
                        &quot;value&quot;: &quot;标准&quot;,  //规格值
                        &quot;picUrl&quot;: &quot;&quot;, //规格图片
                        &quot;addTime&quot;: &quot;2018-02-01 00:00:00&quot;, //添加时间
                        &quot;updateTime&quot;: &quot;2018-02-01 00:00:00&quot;, //更新时间
                        &quot;deleted&quot;: false //删除
                    }
                ]
            }
        ],
        &quot;productList&quot;: [  //产品列表
            {
                &quot;id&quot;: 71,  //商品ID
                &quot;goodsId&quot;: 1057036, // 产品ID
                &quot;specifications&quot;: [  //规格列表
                    &quot;标准&quot;
                ],
                &quot;price&quot;: 79.00,  //价格
                &quot;number&quot;: 96, //剩余总数
                &quot;url&quot;: &quot;http://yanxuan.nosdn.127.net/8a9ee5ba08929cc9e40b973607d2f633.png&quot;,  //规格图片
                &quot;addTime&quot;: &quot;2018-02-01 00:00:00&quot;, //添加时间
                &quot;updateTime&quot;: &quot;2020-06-20 17:31:29&quot;, //更新时间
                &quot;deleted&quot;: false
            }
    }
}

</code></pre>

<h4 id="14-id">1.4 根据订单ID推荐相关产品</h4>
<h5 id="_27">接口说明</h5>
<p>相关商品推荐</p>
<h5 id="_28">请求说明</h5>
<table>
<thead>
<tr>
<th align="left">http 请求方式</th>
<th align="center">get</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">url</td>
<td align="center">/goods/order_related</td>
</tr>
</tbody>
</table>
<h5 id="_29">输入参数</h5>
<table>
<thead>
<tr>
<th align="left">参数</th>
<th align="center">必选</th>
<th align="left">类型</th>
<th align="left">参数说明</th>
<th align="left">备注</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">orderId</td>
<td align="center">是</td>
<td align="left">int</td>
<td align="left">产品ID</td>
<td align="left"></td>
</tr>
</tbody>
</table>
<h5 id="_30">错误说明</h5>
<h5 id="_31">返回实例</h5>
<pre><code class="json">
    {
    &quot;c&quot;: 0,
    &quot;m&quot;: null,
    &quot;d&quot;: {
        &quot;pageSize&quot;: 6,
        &quot;total&quot;: 6,
        &quot;currentPage&quot;: 1,
        &quot;list&quot;: [
            {
                &quot;id&quot;: 1057036, //产品ID
                &quot;name&quot;: &quot;日式纯色水洗亚麻抱枕&quot;, //产品名称
                &quot;tags&quot;: null, //产品标签
                &quot;picUrl&quot;: &quot;http://yanxuan.nosdn.127.net/8a9ee5ba08929cc9e40b973607d2f633.png&quot;, //产品Url
                &quot;unit&quot;: &quot;件&quot;, //单位
                &quot;counterPrice&quot;: 99.00, //专柜价格
                &quot;retailPrice&quot;: 79.00, //销售价格
                &quot;vipPrice&quot;: 100000.00, //vip 价格
                &quot;brief&quot;: &quot;水洗亚麻，透气亲肤&quot;, //运营简介
                       &quot;gallery&quot;:[&quot;http://yanxuan.nosdn.127.net/8ab2d3287af0cefa2cc539e40600621d.png&quot;], //图片
                &quot;videos&quot;:[
                        {
                            &quot;url&quot;:&quot;/xxxx&quot;,
                            &quot;cover&quot;:&quot;cover&quot;,
                            &quot;size&quot;:&quot;x*y&quot;
                        }
                    ]
            }
        ],
        &quot;unit&quot;: &quot;条&quot;,
        &quot;extInfo&quot;: null,
        &quot;empty&quot;: false,
        &quot;endIndex&quot;: 6,
        &quot;startIndex&quot;: 0,
        &quot;firstPage&quot;: true,
        &quot;lastPage&quot;: true,
        &quot;nextPage&quot;: 1,
        &quot;previousPage&quot;: 1,
        &quot;totalPages&quot;: 1
    }
}

</code></pre>

<h4 id="15">1.5 评价列表接口</h4>
<h5 id="_32">接口说明</h5>
<p>分页拉取评价列表信息</p>
<h5 id="_33">请求说明</h5>
<table>
<thead>
<tr>
<th align="left">http 请求方式</th>
<th align="center">get</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">url</td>
<td align="center">/comment/list</td>
</tr>
</tbody>
</table>
<h5 id="_34">输入参数</h5>
<table>
<thead>
<tr>
<th align="left">参数</th>
<th align="center">必选</th>
<th align="left">类型</th>
<th align="left">参数说明</th>
<th align="left">备注</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">type</td>
<td align="center">是</td>
<td align="left">int</td>
<td align="left">类型</td>
<td align="left">如果是0，则查询商品评论；如果是1，则查询活动评论</td>
</tr>
<tr>
<td align="left">valueId</td>
<td align="center">是</td>
<td align="left">int</td>
<td align="left">商品或活动ID</td>
<td align="left">根据type 决定</td>
</tr>
<tr>
<td align="left">showType</td>
<td align="center">是</td>
<td align="left">int</td>
<td align="left">显示类型</td>
<td align="left">如果是0 则是全部 1 有图片的</td>
</tr>
<tr>
<td align="left">page</td>
<td align="center">否</td>
<td align="left">int</td>
<td align="left">分页</td>
<td align="left"></td>
</tr>
<tr>
<td align="left">limit</td>
<td align="center">否</td>
<td align="left">int</td>
<td align="left">单页条数</td>
<td align="left"></td>
</tr>
</tbody>
</table>
<h5 id="_35">错误说明</h5>
<h5 id="_36">返回实例</h5>
<pre><code class="json">
    {
    &quot;c&quot;: 0,
    &quot;m&quot;: null,
    &quot;d&quot;: {
        &quot;pageSize&quot;: 10,
        &quot;currentPage&quot;: 1,
        &quot;list&quot;: [
            {
                &quot;addTime&quot;: &quot;2020-08-05 00:15:47&quot;,
                &quot;content&quot;: &quot;？？&quot;,
                &quot;adminContent&quot;: &quot;&quot;,
                &quot;picList&quot;: null,
                &quot;userInfo&quot;: {
                    &quot;uid&quot;: 11460,
                    &quot;nickname&quot;: &quot;狂奔的蜗牛&quot;,
                    &quot;avatar&quot;: &quot;https://wx.qlogo.cn/mmopen/vi_32/DYAIOgq83eoia7J3Cibw8mJ3rBT7GGrecWfr8SJFqEQKpafEWe9aPMtKhYvf2JEC01uw6ykPdwEag47QSthSSdNg/132&quot;
                }
            },
            {
                &quot;addTime&quot;: &quot;2020-08-04 22:59:23&quot;,
                &quot;content&quot;: &quot;12345&quot;,
                &quot;adminContent&quot;: &quot;&quot;,
                &quot;picList&quot;: [
                    {
                        &quot;url&quot;: &quot;yj59vj7talfir8vi76gp.jpg&quot;,
                        &quot;type&quot;: &quot;jpg/jpeg&quot;
                    },
                    {
                        &quot;url&quot;: &quot;v29c241slystgxakiodn.jpg&quot;,
                        &quot;type&quot;: &quot;jpg/jpeg&quot;
                    }
                ],
                &quot;userInfo&quot;: {
                    &quot;uid&quot;: 11460,
                    &quot;nickname&quot;: &quot;狂奔的蜗牛&quot;,
                    &quot;avatar&quot;: &quot;https://wx.qlogo.cn/mmopen/vi_32/DYAIOgq83eoia7J3Cibw8mJ3rBT7GGrecWfr8SJFqEQKpafEWe9aPMtKhYvf2JEC01uw6ykPdwEag47QSthSSdNg/132&quot;
                }
            }
         ],
        &quot;end&quot;: true,
        &quot;empty&quot;: false,
        &quot;startIndex&quot;: 0,
        &quot;totalPage&quot;: 4
    }
}    
</code></pre></div>
            </div>
        </div>

        <footer class="col-md-12">
            <hr>
            <p>Documentation built with <a href="https://www.mkdocs.org/">MkDocs</a>.</p>
        </footer>
        <script>
            var base_url = "../..",
                shortcuts = {"help": 191, "next": 78, "previous": 80, "search": 83};
        </script>
        <script src="../../js/base.js" defer></script>
        <script src="../../search/main.js" defer></script>

        <div class="modal" id="mkdocs_search_modal" tabindex="-1" role="dialog" aria-labelledby="searchModalLabel" aria-hidden="true">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="modal-header">
                <h4 class="modal-title" id="searchModalLabel">Search</h4>
                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
            </div>
            <div class="modal-body">
                <p>
                    From here you can search these documents. Enter
                    your search terms below.
                </p>
                <form>
                    <div class="form-group">
                        <input type="search" class="form-control" placeholder="Search..." id="mkdocs-search-query" title="Type search term here">
                    </div>
                </form>
                <div id="mkdocs-search-results"></div>
            </div>
            <div class="modal-footer">
            </div>
        </div>
    </div>
</div><div class="modal" id="mkdocs_keyboard_modal" tabindex="-1" role="dialog" aria-labelledby="keyboardModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <h4 class="modal-title" id="keyboardModalLabel">Keyboard Shortcuts</h4>
                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
            </div>
            <div class="modal-body">
              <table class="table">
                <thead>
                  <tr>
                    <th style="width: 20%;">Keys</th>
                    <th>Action</th>
                  </tr>
                </thead>
                <tbody>
                  <tr>
                    <td class="help shortcut"><kbd>?</kbd></td>
                    <td>Open this help</td>
                  </tr>
                  <tr>
                    <td class="next shortcut"><kbd>n</kbd></td>
                    <td>Next page</td>
                  </tr>
                  <tr>
                    <td class="prev shortcut"><kbd>p</kbd></td>
                    <td>Previous page</td>
                  </tr>
                  <tr>
                    <td class="search shortcut"><kbd>s</kbd></td>
                    <td>Search</td>
                  </tr>
                </tbody>
              </table>
            </div>
            <div class="modal-footer">
            </div>
        </div>
    </div>
</div>

    </body>
</html>
